package com.lijie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 操作日志表(TbLog)实体类
 *
 * @author lijie
 * @since 2020-08-01 10:08:22
 */
@Data
@ApiModel(value="TbLog对象", description="操作日志表")
public class TbLog implements Serializable {
    private static final long serialVersionUID = 466713965290804163L;
    /**
    * 日志ID
    */
    @ApiModelProperty(value = "id")
    private Long id;
    /**
    * 操作用户
    */
    @ApiModelProperty(value = "username")
    private String username;
    /**
    * 操作内容
    */
    @ApiModelProperty(value = "operation")
    private String operation;
    /**
    * 耗时
    */
    @ApiModelProperty(value = "time")
    private Double time;
    /**
    * 操作方法
    */
    @ApiModelProperty(value = "method")
    private String method;
    /**
    * 方法参数
    */
    @ApiModelProperty(value = "params")
    private String params;
    /**
    * 操作者IP
    */
    @ApiModelProperty(value = "ip")
    private String ip;
    /**
    * 创建时间
    */
    @ApiModelProperty(value = "createTime")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
    * 操作地点
    */
    @ApiModelProperty(value = "location")
    private String location;

    /**
     *
     * @return
     */
    @ApiModelProperty(value = "deleted")
    private Integer deleted;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Double getTime() {
        return time;
    }

    public void setTime(Double time) {
        this.time = time;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

}